package com.aya.mapper.model;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class User {

    String name;
    @Value("${jdbc.password}")
    String password;

    @Value("#{user.password}")
    Object javaHome;


    public String getName() {
        return name;
    }
    @Value("${jdbc.username}")
    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Object getJavaHome() {
        return javaHome;
    }

    public void setJavaHome(Object javaHome) {
        this.javaHome = javaHome;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", javaHome='" + javaHome + '\'' +
                '}';
    }
}
